// XSPhoneCorePpg.cpp : Implementation of the CXSPhoneCorePropPage property page class.

#include "stdafx.h"
#include "XSPhoneCore.h"
#include "XSPhoneCorePpg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


IMPLEMENT_DYNCREATE(CXSPhoneCorePropPage, COlePropertyPage)


/////////////////////////////////////////////////////////////////////////////
// Message map

BEGIN_MESSAGE_MAP(CXSPhoneCorePropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CXSPhoneCorePropPage)
	// NOTE - ClassWizard will add and remove message map entries
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// Initialize class factory and guid

IMPLEMENT_OLECREATE_EX(CXSPhoneCorePropPage, "XSPHONECORE.XSPhoneCorePropPage.1",
	0x130d4095, 0x50d4, 0x4555, 0xb2, 0x6b, 0xe4, 0x14, 0xdd, 0x6, 0x70, 0x5c)


/////////////////////////////////////////////////////////////////////////////
// CXSPhoneCorePropPage::CXSPhoneCorePropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CXSPhoneCorePropPage

BOOL CXSPhoneCorePropPage::CXSPhoneCorePropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_XSPHONECORE_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CXSPhoneCorePropPage::CXSPhoneCorePropPage - Constructor

CXSPhoneCorePropPage::CXSPhoneCorePropPage() :
	COlePropertyPage(IDD, IDS_XSPHONECORE_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(CXSPhoneCorePropPage)
	// NOTE: ClassWizard will add member initialization here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_INIT
}


/////////////////////////////////////////////////////////////////////////////
// CXSPhoneCorePropPage::DoDataExchange - Moves data between page and properties

void CXSPhoneCorePropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CXSPhoneCorePropPage)
	// NOTE: ClassWizard will add DDP, DDX, and DDV calls here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// CXSPhoneCorePropPage message handlers
